<template>
    index : {{ name }}
    <div @click="setName">setName</div>
</template>
<script setup>
import {ref} from 'vue'


const name = ref(null)
function setName(){
    name.value = 'Tom'
}
</script>